/**
 * @Classname EagerSingleton
 * @Description TODO
 * @Date 2023/8/15 18:31
 * @Created by wpc
 */
public class EagerSingleton {
    private static EagerSingleton eagerSingleton = new EagerSingleton();
    private EagerSingleton(){}

    public EagerSingleton getInstance(){
        return  eagerSingleton;
    }

    public void test(){
        System.out.println("测试饿汉加载成功");
    }
}
